import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const Home = () => import('views/home/Home.vue')
const One = () => import('views/home/childComps/One.vue')
const Two = () => import('views/home/childComps/Two.vue')
const Three = () => import('views/home/childComps/Three.vue')
const Four = () => import('views/home/childComps/Four.vue')
const Five = () => import('views/home/childComps/Five.vue')



const routes = [
    {
        path: '',
        redirect: '/home'
    },
    {
        path: '/home',
        component: Home
    },
    {
        path:'/one',
        component: One
    },
    {
        path:'/two',
        component: Two
    },
    {
        path:'/three',
        component: Three
    },
    {
        path:'/four',
        component: Four
    },
    {
        path:'/five',
        component: Five
    },
]

const router = new VueRouter({
    routes,
    mode:'history'
})

export default router
